from django.contrib import admin

from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth import get_user_model
User = get_user_model()

# from .models import ProfileAPI


# # Define an inline admin descriptor for Employee model
# # which acts a bit like a singleton
# class UserProfileInline(admin.StackedInline):
#     model = ProfileAPI
#     can_delete = False
#     verbose_name_plural = 'UserProfile List'

# # Define a new User admin
# class UserAdmin(BaseUserAdmin):
#     inlines = (UserProfileInline,)

# # Re-register UserAdmin
# admin.site.unregister(User)
# admin.site.register(User, UserAdmin)